﻿Imports Microsoft.VisualStudio.TestTools.UnitTesting
Imports System.IO
Imports EyeOpen
Imports EyeOpen.IO

Namespace EyeOpen.IO.Test

	<TestClass>
	Public Class IntegrationDirectorySearchTest
		Inherits DirectorySearchTest
		Private ReadOnly directoryInfo As New DirectoryInfo("temp")

		<TestCleanup>
		Public Sub Cleanup()
			directoryInfo.Delete(True)
		End Sub

		Protected Overrides Function GetDirectoryInfo() As IDirectoryInfo
			Dim directoryInfoWrapper = New DirectoryInfoWrapper(directoryInfo)

			directoryInfo.AddDirectory(DirectoryKnownValues.Folder).AddFile(DirectoryKnownValues.FileName)

			directoryInfo.AddDirectory("dir2").AddFile("file2.txt")

			Return directoryInfoWrapper
		End Function
	End Class
End Namespace